# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         demo4.08
# Description:
# Author:       $赵怡蕾
# Date:         2019/1/28
#-------------------------------------------------------------------------------

# 通过切片操作获取一个Url的一级域名和完整的域名
url ='https://geekori.com'
print(url[8:15])                # 运行结果：geekori
print(url[8:19])                # 运行结果：geekori.com
